package com.up.vms.infrastructure.exception;

import com.up.vms.infrastructure.mvc.AbstractReturnCode;

/**
 * 业务逻辑校验异常
 */
public class BusinessControlException extends RuntimeException {

	private static final long serialVersionUID = 242338026718280909L;
	
	private final AbstractReturnCode returnCode;
	
    public BusinessControlException(AbstractReturnCode returnCode) {
        this.returnCode = returnCode;
    }

    public AbstractReturnCode getReturnCode() {
        return returnCode;
    }

}

